package com.ruoyi.system.mapper;

import com.github.pagehelper.PageInfo;
import com.ruoyi.system.domain.HospitalCampus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.ruoyi.system.domain.HospitalCampus;

import java.util.List;

@Mapper
public interface HospitalCampusMapper {

    List<HospitalCampus> selectAll();
    HospitalCampus selectById(Long id);
    int insert(HospitalCampus campus);
    int update(HospitalCampus campus);
    int delete(Long id);
    // 根据院区ID获取院区及联系电话
    HospitalCampus selectByIdWithContacts(Long id);
    // 分页查询院区列表及联系电话
    List<HospitalCampus> selectAllWithContactsAndNavigations(@Param("campusName") String campusName);

    /**根据院区名称获取院区id*/
    int selectIdByName(String campusName);
}
